<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="icon" href="./images/favicon.ico">

	<title>Title</title>
	<link rel="stylesheet" type="text/css" href="./css/main.css">

	<!--[if lt IE 9]>
	  <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	  <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>

	<body>
		<div class="wrapper loading-wrapper">
			<div class="logo">
				<img class="img-responsive" src="images/chengyi/story-logo.png" alt="">
			</div>
			<div class="loading">
				<p>loading</p>
				<div class="loadingbar">
					<div class="loadingbar-inner"></div>
				</div>
				<p class="loading-num"><span>0</span>%</p>
			</div>
		</div>
		<script src="js/jquery-1.10.2.min.js"></script>
		<script>
			var intervals;
			document.onreadystatechange = loading; 
			function loading(){
				var i = 0;
				intervals = setInterval(function(){
					if (i<=100) {
						$('.loading-num span').text(i++);
						loadingw = i + '%';
						$('.loadingbar-inner').animate({width: loadingw},50);
					}
				},50);
			}
			window.onload=function(){
				clearInterval(intervals);
			}
		</script>
	</body>
</html>
